﻿using System.Drawing;
using System.Windows.Forms;
namespace Avatar
{
    [System.ComponentModel.ToolboxItemAttribute(false)]
    partial class FormRegion1 : Microsoft.Office.Tools.Outlook.FormRegionBase
    {
        public FormRegion1(Microsoft.Office.Interop.Outlook.FormRegion formRegion)
            : base(Globals.Factory, formRegion)
        {
            this.InitializeComponent();
        }

        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.panel1 = new System.Windows.Forms.Panel();
            this.panel4 = new System.Windows.Forms.Panel();
            this.label1 = new System.Windows.Forms.Label();
            this.panel2 = new System.Windows.Forms.Panel();
            this.tabControl1 = new System.Windows.Forms.TabControl();
            this.broadcastTabPage = new System.Windows.Forms.TabPage();
            this.winformUserBroadcastHost = new System.Windows.Forms.Integration.ElementHost();
            this.wpfUserBroadcastHost = new Avatar.UserBroadcastHost();
            this.ActivityTabPage = new System.Windows.Forms.TabPage();
            this.winformOneCityEventHost = new System.Windows.Forms.Integration.ElementHost();
            this.wpfOneCityEventHost = new Avatar.OneCityEventHost();
            this.panel3 = new System.Windows.Forms.Panel();
            this.goDouban = new System.Windows.Forms.Button();
            this.pictureBox1 = new System.Windows.Forms.PictureBox();
            this.panel1.SuspendLayout();
            this.panel4.SuspendLayout();
            this.panel2.SuspendLayout();
            this.tabControl1.SuspendLayout();
            this.broadcastTabPage.SuspendLayout();
            this.ActivityTabPage.SuspendLayout();
            this.panel3.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
            this.SuspendLayout();
            // 
            // panel1
            // 
            this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
            this.panel1.Controls.Add(this.panel4);
            this.panel1.Controls.Add(this.panel2);
            this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panel1.Location = new System.Drawing.Point(0, 0);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(1044, 449);
            this.panel1.TabIndex = 1;
            // 
            // panel4
            // 
            this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.panel4.Controls.Add(this.label1);
            this.panel4.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel4.Location = new System.Drawing.Point(0, 0);
            this.panel4.Name = "panel4";
            this.panel4.Size = new System.Drawing.Size(1044, 49);
            this.panel4.TabIndex = 1;
            this.panel4.Tag = "related people";
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(27, 9);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(214, 13);
            this.label1.TabIndex = 0;
            this.label1.Text = "所有相关的联系人 豆瓣头像显示在这里";
            // 
            // panel2
            // 
            this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
            this.panel2.Controls.Add(this.tabControl1);
            this.panel2.Controls.Add(this.panel3);
            this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.panel2.Location = new System.Drawing.Point(0, 73);
            this.panel2.Name = "panel2";
            this.panel2.Size = new System.Drawing.Size(1044, 376);
            this.panel2.TabIndex = 0;
            // 
            // tabControl1
            // 
            this.tabControl1.Alignment = System.Windows.Forms.TabAlignment.Left;
            this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.tabControl1.Controls.Add(this.broadcastTabPage);
            this.tabControl1.Controls.Add(this.ActivityTabPage);
            this.tabControl1.DrawMode = System.Windows.Forms.TabDrawMode.OwnerDrawFixed;
            this.tabControl1.Location = new System.Drawing.Point(215, 0);
            this.tabControl1.Multiline = true;
            this.tabControl1.Name = "tabControl1";
            this.tabControl1.Padding = new System.Drawing.Point(5, 15);
            this.tabControl1.SelectedIndex = 0;
            this.tabControl1.Size = new System.Drawing.Size(829, 376);
            this.tabControl1.TabIndex = 4;
            this.tabControl1.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.tabControl1_DrawItem);
            // 
            // broadcastTabPage
            // 
            this.broadcastTabPage.Controls.Add(this.winformUserBroadcastHost);
            this.broadcastTabPage.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.broadcastTabPage.Location = new System.Drawing.Point(47, 4);
            this.broadcastTabPage.Name = "broadcastTabPage";
            this.broadcastTabPage.Padding = new System.Windows.Forms.Padding(3);
            this.broadcastTabPage.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.broadcastTabPage.Size = new System.Drawing.Size(778, 368);
            this.broadcastTabPage.TabIndex = 0;
            this.broadcastTabPage.Tag = "broadcast";
            this.broadcastTabPage.Text = "广播";
            this.broadcastTabPage.UseVisualStyleBackColor = true;
            // 
            // winformUserBroadcastHost
            // 
            this.winformUserBroadcastHost.AutoSize = true;
            this.winformUserBroadcastHost.Dock = System.Windows.Forms.DockStyle.Fill;
            this.winformUserBroadcastHost.Location = new System.Drawing.Point(3, 3);
            this.winformUserBroadcastHost.Name = "winformUserBroadcastHost";
            this.winformUserBroadcastHost.Size = new System.Drawing.Size(772, 362);
            this.winformUserBroadcastHost.TabIndex = 0;
            this.winformUserBroadcastHost.Text = "elementHost1";
            this.winformUserBroadcastHost.Child = this.wpfUserBroadcastHost;
            // 
            // ActivityTabPage
            // 
            this.ActivityTabPage.Controls.Add(this.winformOneCityEventHost);
            this.ActivityTabPage.Location = new System.Drawing.Point(47, 4);
            this.ActivityTabPage.Name = "ActivityTabPage";
            this.ActivityTabPage.Padding = new System.Windows.Forms.Padding(3);
            this.ActivityTabPage.Size = new System.Drawing.Size(778, 368);
            this.ActivityTabPage.TabIndex = 1;
            this.ActivityTabPage.Tag = "activity";
            this.ActivityTabPage.Text = "同城";
            this.ActivityTabPage.UseVisualStyleBackColor = true;
            // 
            // winformOneCityEventHost
            // 
            this.winformOneCityEventHost.AutoSize = true;
            this.winformOneCityEventHost.Dock = System.Windows.Forms.DockStyle.Fill;
            this.winformOneCityEventHost.Location = new System.Drawing.Point(3, 3);
            this.winformOneCityEventHost.Name = "winformOneCityEventHost";
            this.winformOneCityEventHost.Size = new System.Drawing.Size(772, 362);
            this.winformOneCityEventHost.TabIndex = 0;
            this.winformOneCityEventHost.Text = "同城活动";
            this.winformOneCityEventHost.Child = this.wpfOneCityEventHost;
            // 
            // panel3
            // 
            this.panel3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)));
            this.panel3.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.panel3.Controls.Add(this.goDouban);
            this.panel3.Controls.Add(this.pictureBox1);
            this.panel3.Location = new System.Drawing.Point(3, 4);
            this.panel3.Name = "panel3";
            this.panel3.Size = new System.Drawing.Size(206, 369);
            this.panel3.TabIndex = 3;
            // 
            // goDouban
            // 
            this.goDouban.FlatAppearance.BorderSize = 0;
            this.goDouban.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.goDouban.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.goDouban.Location = new System.Drawing.Point(64, 187);
            this.goDouban.Name = "goDouban";
            this.goDouban.Size = new System.Drawing.Size(75, 23);
            this.goDouban.TabIndex = 5;
            this.goDouban.Text = "去豆瓣";
            this.goDouban.UseVisualStyleBackColor = true;
            this.goDouban.Click += new System.EventHandler(this.goDouban_Click);
            // 
            // pictureBox1
            // 
            this.pictureBox1.Anchor = System.Windows.Forms.AnchorStyles.Top;
            this.pictureBox1.ImageLocation = "http://www.douban.com/icon/user.jpg";
            this.pictureBox1.Location = new System.Drawing.Point(82, 27);
            this.pictureBox1.Name = "pictureBox1";
            this.pictureBox1.Size = new System.Drawing.Size(48, 48);
            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
            this.pictureBox1.TabIndex = 3;
            this.pictureBox1.TabStop = false;
            this.pictureBox1.WaitOnLoad = true;
            // 
            // FormRegion1
            // 
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
            this.AutoScroll = true;
            this.Controls.Add(this.panel1);
            this.Name = "FormRegion1";
            this.Size = new System.Drawing.Size(1044, 449);
            this.FormRegionShowing += new System.EventHandler(this.FormRegion1_FormRegionShowing);
            this.FormRegionClosed += new System.EventHandler(this.FormRegion1_FormRegionClosed);
            this.panel1.ResumeLayout(false);
            this.panel4.ResumeLayout(false);
            this.panel4.PerformLayout();
            this.panel2.ResumeLayout(false);
            this.tabControl1.ResumeLayout(false);
            this.broadcastTabPage.ResumeLayout(false);
            this.broadcastTabPage.PerformLayout();
            this.ActivityTabPage.ResumeLayout(false);
            this.ActivityTabPage.PerformLayout();
            this.panel3.ResumeLayout(false);
            this.panel3.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
            this.ResumeLayout(false);

        }

        void tabControl1_DrawItem(object sender, System.Windows.Forms.DrawItemEventArgs e)
        {
            StringFormat sfForamt = new StringFormat();
            sfForamt.LineAlignment = StringAlignment.Center;
            sfForamt.Alignment = StringAlignment.Center;
            //sfForamt.FormatFlags = StringFormatFlags.DirectionVertical;
            TabControl tcTab = (TabControl)sender;
            SolidBrush brush = new SolidBrush(Color.Black);
            e.Graphics.DrawString(tcTab.TabPages[e.Index].Text, SystemInformation.MenuFont, brush, e.Bounds, sfForamt);
            brush.Dispose();
            sfForamt.Dispose();
        }

      

        #endregion

        #region Form Region Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private static void InitializeManifest(Microsoft.Office.Tools.Outlook.FormRegionManifest manifest, Microsoft.Office.Tools.Outlook.Factory factory)
        {
            manifest.FormRegionName = "豆瓣信息";
            manifest.FormRegionType = Microsoft.Office.Tools.Outlook.FormRegionType.Adjoining;
            manifest.ShowInspectorCompose = false;
            manifest.ShowReadingPane = false;

        }

        #endregion

        private System.Windows.Forms.Panel panel1;
        private System.Windows.Forms.Panel panel4;
        private System.Windows.Forms.Panel panel2;
        private System.Windows.Forms.Panel panel3;
        private System.Windows.Forms.PictureBox pictureBox1;
        private System.Windows.Forms.TabPage broadcastTabPage;
        private Button goDouban;
        private TabControl tabControl1;
        private Label label1;
        private TabPage ActivityTabPage;
        private System.Windows.Forms.Integration.ElementHost winformOneCityEventHost;
        private OneCityEventHost wpfOneCityEventHost;
        private System.Windows.Forms.Integration.ElementHost winformUserBroadcastHost;
        private UserBroadcastHost wpfUserBroadcastHost;

        public partial class FormRegion1Factory : Microsoft.Office.Tools.Outlook.IFormRegionFactory
        {
            public event Microsoft.Office.Tools.Outlook.FormRegionInitializingEventHandler FormRegionInitializing;

            private Microsoft.Office.Tools.Outlook.FormRegionManifest _Manifest;

            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public FormRegion1Factory()
            {
                this._Manifest = Globals.Factory.CreateFormRegionManifest();
                FormRegion1.InitializeManifest(this._Manifest, Globals.Factory);
                this.FormRegionInitializing += new Microsoft.Office.Tools.Outlook.FormRegionInitializingEventHandler(this.FormRegion1Factory_FormRegionInitializing);
            }

            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public Microsoft.Office.Tools.Outlook.FormRegionManifest Manifest
            {
                get
                {
                    return this._Manifest;
                }
            }

            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            Microsoft.Office.Tools.Outlook.IFormRegion Microsoft.Office.Tools.Outlook.IFormRegionFactory.CreateFormRegion(Microsoft.Office.Interop.Outlook.FormRegion formRegion)
            {
                FormRegion1 form = new FormRegion1(formRegion);
                form.Factory = this;
                return form;
            }

            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            byte[] Microsoft.Office.Tools.Outlook.IFormRegionFactory.GetFormRegionStorage(object outlookItem, Microsoft.Office.Interop.Outlook.OlFormRegionMode formRegionMode, Microsoft.Office.Interop.Outlook.OlFormRegionSize formRegionSize)
            {
                throw new System.NotSupportedException();
            }

            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            bool Microsoft.Office.Tools.Outlook.IFormRegionFactory.IsDisplayedForItem(object outlookItem, Microsoft.Office.Interop.Outlook.OlFormRegionMode formRegionMode, Microsoft.Office.Interop.Outlook.OlFormRegionSize formRegionSize)
            {
                if (this.FormRegionInitializing != null)
                {
                    Microsoft.Office.Tools.Outlook.FormRegionInitializingEventArgs cancelArgs = Globals.Factory.CreateFormRegionInitializingEventArgs(outlookItem, formRegionMode, formRegionSize, false);
                    this.FormRegionInitializing(this, cancelArgs);
                    return !cancelArgs.Cancel;
                }
                else
                {
                    return true;
                }
            }

            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            Microsoft.Office.Tools.Outlook.FormRegionKindConstants Microsoft.Office.Tools.Outlook.IFormRegionFactory.Kind
            {
                get
                {
                    return Microsoft.Office.Tools.Outlook.FormRegionKindConstants.WindowsForms;
                }
            }
        }
    }

    partial class WindowFormRegionCollection
    {
        internal FormRegion1 FormRegion1
        {
            get
            {
                foreach (var item in this)
                {
                    if (item.GetType() == typeof(FormRegion1))
                        return (FormRegion1)item;
                }
                return null;
            }
        }
    }
}
